import csv

csvfile = open('csv_test.csv', 'w')
writer = csv.writer(csvfile, delimiter=',')
writer.writerow(['姓名', '年龄', '电话'])

data = [
    ['小河', '25', '1234567'],
    ('小芳', '18', '789456'),
    ('小魏', '18', '789456')
]
writer.writerows(data)

csvfile.close()